import cv2 as cv


def main():
    img = cv.imread("../data/test.png")

    cv.imshow("Press S to save", img)
    key = cv.waitKey(0)

    if key == ord("s"):
        cv.imwrite("../data/save.jpg", img)

    cv.destroyAllWindows()


if __name__ == "__main__":
    main()
